package com.llt.impl;

import com.llt.mapper.ClassSecondMapper;
import com.llt.pojo.ClassSecond;
import com.llt.service.ClassSecondService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClassSecondImpl implements ClassSecondService {
    @Autowired
    private ClassSecondMapper classSecondMapper;

    @Override
    public int addClassSecond(ClassSecond classSecond) {
        return classSecondMapper.addClassSecond(classSecond);
    }

    @Override
    public List<ClassSecond> classSecondSelectByFirstIDAll(Integer id) {
        return classSecondMapper.classSecondSelectByFirstIDAll(id);
    }

    @Override
    public ClassSecond queryByName(String name) {
        return classSecondMapper.queryByName(name);
    }

    @Override
    public Integer updateClassSecond(ClassSecond classSecond) {
        return classSecondMapper.updateClassSecond(classSecond);
    }

    @Override
    public Integer deleteClassSecond(int id) {
        return classSecondMapper.deleteClassSecond(id);
    }
}
